package com.itheima.vo.mongo;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.geo.GeoJsonPoint;
import org.springframework.data.mongodb.core.index.Indexed;

import java.io.Serializable;

@Data
public class UserLocationVo implements Serializable {
    @Id
    private ObjectId id;
    @Indexed
    private Long userId; //用户id
    private String address; //位置描述
    private Long created; //创建时间
    private Long updated; //更新时间
    private Long lastUpdated; //上次更新时间
}
